package com.zzj.ecology.system.bean.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @ClassName Page
 * @Description TODO
 * @Author zhijun zeng at 2019/4/17
 * @Version 1.0
 **/
@ApiModel(value = "分页对象")
public class Page implements Serializable {

    @ApiModelProperty(value = "当前页码")
    private Integer currentPage = 1;//当前页
    @ApiModelProperty(value = "总记录数")
    private Integer totalCounts;//总记录数
    @ApiModelProperty(value = "页面显示记录条数")
    private Integer pageCounts = 10;//页面显示记录数
    @ApiModelProperty(value = "分页数据List")
    private List<Object> list;//保存list数据
    @ApiModelProperty(value = "其它数据Map")
    private Map<String, Object> data = new HashMap<String, Object>();

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getTotalCounts() {
        return totalCounts;
    }

    public void setTotalCounts(Integer totalCounts) {
        this.totalCounts = totalCounts;
    }

    public Integer getPageCounts() {
        return pageCounts;
    }

    public void setPageCounts(Integer pageCounts) {
        this.pageCounts = pageCounts;
    }

    public Map<String, Object> getData() {
        return data;
    }

    public void setData(Map<String, Object> data) {
        this.data = data;
    }

    public List<Object> getList() {
        return list;
    }

    public void setList(List<Object> list) {
        this.list = list;
    }
}
